#ifndef _FIG_BACKGROUND_H_
#define _FIG_BACKGROUND_H_

#include "ui/ui_manager.h"


class FIGBackground
{
public:


	FIGBackground(const std::string& Name , 
				  const math::Vec2&	Pos,
				  float Speed, 
				  float	MoveScaleX,
				  float Rotation, 
				  float Scale,
				  int	Layer,
				  COLOR c
				  );
	

	virtual void		Render(const math::Vec2& Offset, float Scale);
	virtual void		RenderDebug(const math::Vec2& Offset, float Scale);
	virtual void		Tick(float dt);
    

	virtual void		Clear();
	void				SetColor(float R, float G,float B, float A){ m_Color = ColorfRGBA(R,G,B,A); };
	
	virtual bool		IsHitAble() { return false; };
	bool				IsToDelete() const { return m_IsToDelete; };
	const std::string&	GetFile()const { return m_File; };
	bool				IsForeGround() const { return m_Layer == 3; };
	void				MoveUpForSec(float Seconds);
	
protected:

	
	float				m_Speed;
	float				m_MoveScaleX;
	math::Vec2			m_Pos;
	math::Vec2			m_Size;
	COLOR				m_Color;
	float				m_Rotation;
	float				m_Scale;

	ui::UISprite		m_Sprite;	
	int					m_Layer;

	bool				m_IsToDelete;
	std::string			m_File;

};

#endif